package com.hospital.diagnosis.module.feign;

import com.hospital.common.base.Result;
import com.hospital.common.config.FeignConfig;
import com.hospital.common.dto.data.simulation.InspectionReportDto;
import com.hospital.common.pojo.TDiagnosis;
import com.hospital.common.pojo.TDiagnosisRecord;
import com.hospital.common.vo.data.simulation.InspectionReportVo;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "data-simulation",configuration = FeignConfig.class)
public interface HospitalFeign
{
    @PostMapping("/diagnosisRecord/add")
    Result<Long> addDiagnosisRecord(@RequestBody TDiagnosisRecord diagnosisRecord);

    @PostMapping("/diagnosis/add")
    Result<Long> addDiagnosis(@RequestBody TDiagnosis diagnosis);

    @PostMapping("/inspectionResult/query")
    Result<List<InspectionReportVo>> query(@Valid @RequestBody InspectionReportDto inspectionReportDto);
}
